#pragma once

#include <QObject>
#include <QThread>
#include <QEventLoopLocker>

class MyThread : public QThread
{
    Q_OBJECT
public:
    MyThread(QObject* parent = nullptr);
    ~MyThread();


protected:
    virtual void run();

public:
    QObject* m_object = nullptr;

};



class LbsObjectThread : public QObject
{
    Q_OBJECT

public:
    LbsObjectThread();
    ~LbsObjectThread();

signals:
    void sigrun();
public slots:
    void run();
private slots:
    void finished();
public:
    MyThread* m_InnerThread = nullptr;
    QEventLoopLocker m_loopLocker;
};
